package com.open.rbac.model;

import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import com.open.center.jwt.model.JwtToken;

/**
 * 用户
 *
 * @author Riche's
 * @since 2022/11/3
 */
@Getter
@Setter
public class UserInfo {

    @Schema(description = "用户Id")
    private String id;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "角色列表")
    private List<String> roles;

    @Schema(description = "权限列表")
    private List<String> permissions;

    @Schema(description = "访问令牌")
    private JwtToken accessToken;

    @Schema(description = "刷新令牌")
    private JwtToken refreshToken;

}
